#pragma once
#include "afxwin.h"

#include <afxmt.h>

// CProcessingWnd dialog
#define UM_SET_PROCESSING_TEXT WM_USER + 100
#define UM_PROCESS_FINISHED WM_USER + 101

class CProcessingWnd : public CDialog
{
    DECLARE_DYNAMIC(CProcessingWnd)

public:
    CProcessingWnd(CWnd* pParent = NULL);   // standard constructor
    virtual ~CProcessingWnd();

// Dialog Data
    enum { IDD = IDD_Processing };

protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    DECLARE_MESSAGE_MAP()

    afx_msg LRESULT OnSetProcessingText(WPARAM wParam,LPARAM lParam);
    afx_msg LRESULT OnProcessFinished(WPARAM wParam,LPARAM lParam);

protected:
    CStatic m_processingMessage;

public:
    CString m_initialMessage;
    CEvent m_initialized;

    virtual BOOL OnInitDialog();
protected:
    virtual void OnOK();
    virtual void OnCancel();
};
